package cn.song.controller;

import cn.hutool.core.date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
@Slf4j
@RestController
@RequestMapping("/common")
public class TestController {


    /**
     * 回调接收测试返回True
     */
    @RequestMapping("testReturnTrue")
    public boolean testReturnTrue(HttpServletRequest request) {

        log.info("回调接收测试返回True,ip:{}", "127.0.0.1 " + DateUtil.now());
        return true;
    }
}
